<?php
/**
 * 公众号用户永久地址
 * @author lss
 * 2017-03-02
 */
namespace soa\mp\shop;

use soa\client;

class qrCode  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//获取二维码
	public function add($platform,$service,$info_key = "",$info = []){
		return $this->post("api/shop/qrCode/add",compact('platform','service','info_key','info'));
	}

	//获取信息
	public function getInfo($platform,$extra_info,$order_by = "update_time DESC"){
		return $this->post("api/shop/qrCode/getInfo",compact('platform','extra_info','order_by'));
	}

	//获取信息列表
	public function getList($platform,$extra_info,$limit = [],$order_by = "update_time DESC"){
		return $this->post("api/shop/qrCode/getList",compact('platform','extra_info','limit','order_by'));
	}
}